#ifndef JSONRPCTCPSERVER_H
#define JSONRPCTCPSERVER_H


#include "jsonrpcserver.h"


class QTcpServer;

/**
 * @brief The JsonTcpServer class TCPServer implementation of the JsonRpcTcpServer
 */
class JsonRpcTcpServer : public JsonRpcServer
{
    Q_OBJECT
public:
    JsonRpcTcpServer();
    ~JsonRpcTcpServer();
    void listen(int port);

Q_SIGNALS:
    void newClient(JsonRpcSocket*);

protected Q_SLOTS:
    void connectClient();
    void disconnectClient();

private:
    QTcpServer *p_server;
};


#endif // JSONRPCTCPSERVER_H
